package com.hyh.baowenlioaworking.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyh.baowenlioaworking.commom.R;
import com.hyh.baowenlioaworking.model.Employee;
import com.hyh.baowenlioaworking.model.dtos.EmployeeDto;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @BelongsPackage: com.hyh.baowenlioaworking.service
 * @ClassName EmployeeService
 * @Author: hyhWTX
 * @CreateTime: 2023-07-21  13:59
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
public interface EmployeeService extends IService<Employee> {
    /**
     * 查询所有
     * @return
     */
    List<EmployeeDto> queryEmployee();

    /**
     * 修改数据
     * @param employeeDto
     * @return
     */

    int updateEmployee(EmployeeDto employeeDto);
    public R<Integer> deleteEmployeeById(int id);
    int deleteAll();

    R<String> addEmployee(EmployeeDto employeeDto);

    public Page<Employee> getEmployeesPage(Integer pageNum, Integer pageSize);
}
